package com.lxq.sign.controller;

import com.lxq.sign.domain.LogInfo;
import com.lxq.sign.service.LogInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author: KK
 * @date: 2023/11/15 17:52
 * @email: 2551000940@qq.com
 */

@RestController
@RequestMapping("/logInfo")
@Slf4j
@SuppressWarnings({"all"})
public class LogInfoController {

    @Autowired
    LogInfoService logInfoService;

    @GetMapping("/get/{currentPage}/{id}")
    Result getLogInfo(@PathVariable("currentPage") Integer currentPage,@PathVariable("id") Integer id){
        Result logInfo = logInfoService.getLogInfo(currentPage,id);
        log.info("签到日志为:" + logInfo);
        return logInfo;
    }


}
